package com.jxbeidou.system.user.convert;

import com.jxbeidou.system.user.entity.UserPostDO;
import com.jxbeidou.system.user.vo.UserPostVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
* 用户岗位关系表
*
* @author 杜晓祥 
* @since 1.0.0 2023-12-14
*/
@Mapper
public interface UserPostConvert {
    UserPostConvert INSTANCE = Mappers.getMapper(UserPostConvert.class);

    UserPostDO convert(UserPostVO vo);

    UserPostVO convert(UserPostDO entity);

    List<UserPostVO> convertList(List<UserPostDO> list);

}